using System;
using System.Collections.Generic;
using System.Text;

namespace Payroll
{
    public class ChangeCommissionedTransaction:ChangeClassificationTransaction
    {
        private double itsSalary;
        private double itsCommissionRate;

        public ChangeCommissionedTransaction(int empid, double salary, double commissionRate)
            : base(empid)
        {
            itsSalary = salary;
            itsCommissionRate = commissionRate;
        }

        public override PaymentClassification GetClassification()
        {
            return new CommissionedClassification(itsSalary, itsCommissionRate);
        }

        public override PaymentSchedule GetSchedule()
        {
            return new BiweeklySchedule();
        }
    }
}
